If you overthrow one autocrat and the society is not ready to self-govern, you'll just have another one taking his place. The best you can do is to fund some kind of democratic opposition on the ground and in exile, hoping to grow a political class mature enough that they will take over after autocrat loses power one way or another.