Postgres Select Ids Into Array Methods Javascript Map Set For Learning