Wrap create and update in transactions