Update graphs.php