A data model library for PouchDB