The public economy of metropolitan areas