error while connecting database in session class
Commands out of sync; you can't run this command now