Rule of law and democracy