sync to couchDB