Adapt to new couchdb.