save pouchdb to local couchdb