[db] adapt function reload_db to new db structure
[db] fix integer format string
[db] intercept possible division by zero
[db] print family sizes along with stats
[tool] include stats on demand only (--stats option)
[db] adjust index field for non tt collections
[db] fix table constructor syntax