1. A computer implemented method for executing a non distributed transaction that involves a single database storage unit, comprising: detecting that a transaction is a non distributed transaction; reading persistent data from said database storage unit and performing a plurality of operations with said persistent data to execute said non distributed transaction; and executing an emulated two-phase commit protocol comprising: sending a prepare command from a resource manager to said database storage unit to prepare for changes to be made to said persistent data as a result of the plurality of operations; sending a commit command from said resource manager to said database storage unit prior to reception of a ready command sent from said database storage unit in response to said prepare command to cause said database storage unit to commit said changes to said database storage unit; and updating said persistent data of said database storage unit with said changes only once in response to sending said prepare and said commit commands only after all of the plurality of operations with said persistent data are complete.