Adding ActiveRecord and helpers.