Add ActiveRecord database connection