Postgres Select Ids Into Array In Javascript W3schools