Store template in database
Add save and load template from database functionality to fit.py
Add a DB object that encapsulates db calls
Fix object database queries to use two collections, data and template