Made sure exec returns a DatabaseTransaction object.