Postgres Value In Array Javascript Append To Object