Democracy, education, and economics