saving test ledger to couchdb