I wouldn't say that elections have little to do with democracy, they are necessary. Though I agree that merely having an election isn't sufficient. A lot of modern dictatorships have "elections". And that's not to even begin to get in to how representation works.