Add function to get a student's year to teachdb