Updated the SQL to reflect changes made in HTML checks