for sql config and some improvement for self snippets