add a class is also relative to teacher and student's database