Replace CChainDB instantiations with a global CBlockTreeDB instance