following meeting with Pedro I implemented the statistics population logic. Currently two modes exist, in the next few days I am going to retire the old statistics logic and its associated tables