update SQL templates and add instructions