Updates
renamed check.php to main.php, as this is the main file you need to run to get the sql queries