Fix sql typos, thanks VM