use pouchdb adapter properly