Implement unit of work pattern.