sql snippets changes