add request management to pouchdb adapter