Add -dbstats argument from Huntercoin to analyse BDB storage

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.Analyse db