replace couchdb with pouchdb