Add Template model on backend and begin implementing db/fs syncing