A theory of the democratic fiscal constitution