fix up couchdb