Cities have authority under state law to control certain occupations and activities to provide for the general welfare and good order of the city. Commonly licensed and regulated areas include liquor sales, lawful gambling and activities of peddlers and transient merchants.