Plsql View Tables Postgres Db Version 1