Changed pg gem for JRuby