cleaning SQL requests