Database manager that selects the best substitute teacher to fill in for a teacher (based on several criteria)