Update sql command
Still need to adjust addsql.php