Added query Ownership in upload.php