fix(sql): sql syntax errors fixed