Invia SMS: Economic origins of dictatorship and democracy