“North Korea isn’t a democracy and they’re doing pretty good despite having sanctions”
I have no idea where you get this false impression but I suggest you examine nigh time satellite maps comparing Lightsources from the totalitarian North versus democratic South Korea. Same people only divided by political systems.
While true a country without democracy can advance with technology all things being equal it will advance further with democracy.