Error in User Class: couldn't connect to database