5. Section 5. The city may define, prohibit, abate, suppress, regulate or prevent all things detrimental to the health, morals, comfort, safety, convenience and welfare of the inhabitants of the city and all nuisances and causes thereof and may pass such ordinances and adopt such resolutions as may be expedient or necessary to maintain and promote the peace, good government and welfare of the city and for the performance of the functions thereof.