Update for latest couchdb