Postgres Connect To Database With Javascript To See If Three Or More Gather