Wrap everything in one transaction