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 is something that would only be generated if AR is available. We've started making similar changes else where, see: #1150