template document for sql files