Changed teacher table to teacher table + teacher_table_academic_periods