Code

Adding check_mysql_query, using new ranges and threshold checking