Issue #loop-65 by cableman: Started on new statistic queries and ouputted the first tables