modify MySQL statment that prevented INSERT statements