Move DB configuration to DBAPIController

- Move DB configuration out of restapi folder into DBAPIController
optional subclass
- Move TemplateController to templates folder
- Update instructions