From the People to the Constitution. Inventing Democracy during the French Revolution