Postgresql Create Function Return Json Array Syntax In Php