database strudter modified to support repo based weighting of the statistics