changed the stats return count database table and reintstated the stats collection insertions