Add templates for base classes for query/command/interactor