In the gel script you should xog out the entire project, make the changes to the nodes and attributes and send the entire xog back in. Try that for one project and see if that works.
This is not a recommended approach -- but if there are a few custom attributes which need to be updated, do it through SQL statement. Anything OOB, should be updated through XOG if possible.