Implemented transactions, including rollbacks - TODO: processing of result