Implement ActiveRecord.