Postgresql Convert Row To Array