BZ added sql snippets