Democratic Institutions under Autocracy