Cleaned sql.php