Add -dbstats argument.

Implement the -dbstats argument, which runs a database file storage
statistics analysis and prints it to the debug log.