Update FlagAsDeletedJob to use ts connection

Update FlagAsDeletedJob to use ts connection