Add -dbstats argument to analyse BDB storage (from Huntercoin)

Add a new -dbstats argument that can be used to analyse what exactly is stored in a BDB database file.  This can be used to help with optimising storage.