fixed function to get last ledger saved from couchdb to account for most recent changes having been design docs