fixed the pouchdb provider