Switched to using SqlQueryTemplates for SQL