Changed front-end page and started creating query.php script