Fixed issues with SQL snippets.