Demografische Dienste, Wahlamt, Militäramt, Protokollamt