Run PG db check under correct user