you could use a different CloudDB Tag for each team, then provide code to select the team they will use (possibly password protected?)
you could provide a different version of your app for each team.
What you do depends on whether the code you posted actually works as you would like to provide the counts of parishioners. You seem to be using multiple CloudDB components; that is not necessary.