[WIP] Add 'visitNodes' function and implement 'visitLeaves' with it
rotation and population of ledger into current database