Fix adapter for CouchDB