Postgres Select Into Array Variable Javascript