Venice wasn't a democracy in any meaningful way, either in the style of Greek democracy that preceded it or western liberal democracies that succeeded them. It was an oligarchy with limited democratic elements.
What Venice had was pretty good compared to dictatorship.