Conversion to CouchDB