update pg version of view on every update