adding pg to Gemfile and bundle install
add dependency postgresql-devel