Updated upload.php and test.sql