Update get_history.php