setting up ActiveRecord