Postgres Return Variable From Procedure