beginnings of model wrapper for pouchdb