In what way do nurses and carpenters not contribute to a functioning democracy?
Their direct work output contributes to a functioning democracy, but does so indirectly by providing material goods and services, which I refer to by the shorthand "economic reasons". We don't train nurses and carpenters because their training directly supports democracy; we train them because we want to live inside and be cared for when needed, and these things are incidentally good for any society, democratic or otherwise.
They may of course contribute as individuals, too, but their training is not required for them to do so.
The things thay directly help democracy are well considered viewpoints, humanities research, journalism, law etc. Stuff that influences decision makers including voters hopefully roughly for a greater good although we all may disagree exactly what that means.
Nurses and carpenters help society and functioning civilization.