Conversion from Mongo to CouchDB