Build Json Object Postgres Show Permissions