Establish ActiveRecord connection