In what year did San Francisco officially become a city?