finished the file uploader and inserting the info into the database