Add in an active_record_helper

Please consider this pull request as the start of a discussion about if this file is needed.

Feedback welcome.

Thanks.
This would need to be based on the transactional settings already, not everything supports transactions and certain code won't tolerate them.