added sql statement parser, fixes in mysql statement