switching to CouchDB