change to pg gem