You are correct that this is not a democracy.  It is a representative republic.  And the electoral college and our representative system exists in part, so that a concentrated population from urban centers like NYC, Chicago, Seattle and San Francisco couldn't by simple majority determine what the rest of the country had to live with. Exactly like what would have just happened otherwise. It is a unique and equitable system.