Postgres Select Into Array Variables In Javascript