fixed some SQL String syntax errors