db::selectDB(): The database could not be selected: Lost connection to MySQL server during query