Added database normalization functions

Producing a wider set of statistics for a wider scope of subgroups