Adds support for transaction to datamapper