SQL fix and start on stream template.