This addresses an issue where get_schedule_for_user was making an excessive number of calls to the database.