Add update functionality for CouchDB