Implementing Distributed Transactions using Two Phase Commit Protocol