Trade and satisfaction
Democracies trade heavily with each other and that thus war would be only costs, but no gains: democracies are satisfied states and are less likely to fight about territory, especially if they are well established democracies and have strong economic ties