PouchDB-based model objects for Angular