Postgresql Convert Array To String In Php