Hi Arti.... ok... that sentence is very clearly and obviously missing a word. The sentence is NOT correctly written to begin with, so it's totally understandable why you're confused.
The first sentence isn't perfect, but the grammar is 'acceptable'.
Second sentence OUGHT to read = THE members who WERE elected to public office, all served as democrats. (And I absolutely would not capitalize 'democrat' because it's a common noun). 'Its' should be 'the', because 'a family' in English, are people, and not things. It's kinda rude to call a person an 'it' or a bunch of people 'its'. haha.