fix update in CouchDB by passing _rev around