Transaction logic and schema.