Fixing SQL snippets.