Add -dbstats argument.

Implement the -dbstats argument, which runs a database file storage
statistics analysis and prints it to the debug log.
Merge pull request #42 from domob1812/analyse-db

Add -dbstats argument.