Added support for nested transactions using SAVEPOINTs