Update to newer CouchDB interface