Template for scripts with SQL