mass changes to 'upload.php', can now update and add multiple files to the database