Hi Tiago
I've been away from Clarity for a couple of years, but back in the old days running Update SQL to update fields was frowned upon (there were rumours for years that the capability was going to be removed, good to see it hasn't been yet).
As a minimum, the process used to be that you needed to ask Clarity/Broadcom via a support request to approve your script They won't be responsible for anything that gets broken (understandable) but they may be able to point you at any risks of doing it the way you propose, and they may propose a different way of accomplishing what you need.
From memory there are other fields (Input Type?) that I've seen used to link to a related object (such as an application or service) but as I say, I've been away from Clarity for a couple of years and may be hazy on the details.
The other thing to bear in mind is that the Tasks XOG uses PREXTERNALID as its key, so if you ever XOG tasks in/out, you might need to test that before going into Production.