Postgres Insert Into Array Javascript Methods For Querying