cleaning up and make sql syntax error check