Upload error handling

uploadStudentList now restores database in the event of a catchable
error.