sync template tracker filters out stream template db variants

Once we've identified a template as matching a stream, it does a
naive check if the template name ends with 'db'. This should be good
enough for our needs.