Update statistics.class.php

Updates specific to Quark, May need tweaking, i didn't check every single bracket, was just following the pattern.