commented echo sql; in history.php