cleaned up updateStats.php