Postgresql Row To Array Javascript Push