Updated changes in upload.php file, added some queries to queries.php