The mayor and council shall have the power and authority to levy and collect regulatory fees so long as such fees are based upon customary governmental investigations or inspections of such businesses and professions so as to protect the public health, safety, or welfare or in the course of enforcing a state or city building, health, or safety code and the same approximate the reasonable cost of the actual regulatory activity performed by the city.