Erdogan takes a blow while democracy wins in Turkey