following lines can be revised to use the data read earlier, to avoid duplicate database reads?

`data.student = logic.getStudentForEmail(courseId, studentEmail);`
`InstructorAttributes instructor = logic.getInstructorForGoogleId(courseId, account.googleId);`