Format character distribution more nicely (as a table)

and update the tests
Rename dbAdapter's fields for clarity