The city council, by ordinance, shall have the power to require any individuals or corporations doing business in the city or who practice or offer to practice any profession or calling therein to obtain a license or permit for such activity from the city and pay a reasonable fee for such license or permit where such activities are not now regulated by general State law so as to preclude regulation by the city. Such fees may reflect the total cost to the city of regulating the activity and, if unpaid, shall be collected as provided in Section 6.18. The city council, by ordinance, may establish reasonable requirements for obtaining or keeping such licenses as the public health, safety, and welfare necessitates.