update with pg