Move active record into ActiveRecord