Establish connection by using ActiveRecord::Base