Change statistic script to look at new table