Adapter for the PouchDB database