added help text for template text
updated sql script