WIP: add  QueryTemplateBuilder to Studies

- TemplateBuilder fails to inject in the RepositoryImpl, will see if this is a known issue.