Add debug tool dump_database

Dump dictionary.dat and index_tree.dat in a human readable way.

Signed-off-by: Jim Huang <jserv@0xlab.org>