add pgrest view definition