Is there anyway to reuse this code?
Is it worth moving it into a class so we can do EpisodeDAO.loadAppsByShow() or similar?