compensate for class date if a student is deleted from the database.
compensate for class data if a teacher is deleted from the database.
attempt to fix duplicate bug for students and teachers method.