REVERT

Had to undo the query changes, as it seems the last thread script isn't
updating the table correctly at present.. so that little plan didn't
work!