Modify some SQL requests