Changed the upload view models to save the dataset status before sending a success email.