using pg gem 0.17.0 to resolve seg fault