Upload base phrets.php file and slight changes to query.php