Postgresql Row To Array Js Practice Question