amended activerecord connection file, connection.rb