New DatabaseReader reads ledger numbers from database.