re-write get_schedule to fetch it all from the database