What would be the way to make both the insert and update transactional so I can't lose the update if some problem between happens?