now checking the later side of the ledger chain for batches inserted into couchdb