Fix typing mistake in DB upgrade
Catch the scenario where no members of the group exist