Move common database queries to BaseEnrollmentView
Use sessions to enforce passing eligibility