syncing with remote couchdb