Updated SQL snippets