2PC commit protocol working