Where did the capital city move in 1817?