Add support for query_template to SQL integration

Voted for it.
I have the same issue over at

As I’m kinda new to this feature request stuff…
How are the chances this is getting looked at?

With my issue, I’m unable to find a hot fix in a lengthy config unfortunately. I’m relying on a database query :cry: