BUG Fixed incorrect reference to database type in MySQLQuery