Added housekeeping to cleanup orphaned episodes and history items