Updated sql.php file