Postgresql Row To Array Javascript Concat Variable