clean up QueryFactory::mysql_connect a bit