Updating for pg gem