Refine couchdb cartridge and persistent storage