added couchdb syncing