sql template, replaced headers with meta redirects