require 'active_record' ActiveRecord::Base.logger = Logger.new( STDOUT ) ActiveRecord::Base.establish_connection( :adapter => "postgresql", :host => "localhost", :username => "philco", :password => "", :database => "amazon_db" )