fixing an outdated reference to pgb connection api