switch mysql queries with queryDB()