Optimization.  Building of Global stats class

Now doing it once in CreateDatabase and ordering by when/where neded.