Looks like you jumped the gun on that and didnt' read about the electoral college.
Clinton and Obama won the popular vote.
4 occasions the person who won the fewer votes won the presidency, John Adams, Hayes, Bush jnr, Trump all were Republicans.
The electoral college means that swing states count for more so your vote in those sates matters more. How is that democratic?