refactoring, added composite phase operations for sql transaction