Postgres Call Function From Procedure