identify bad mysql queries