added require 'pg' to app.rb