move adapter from cozy to pouchdb