What are the 3 purposes of the democratic constitution?