The mayor and city council of a city of the primary class shall have full power and authority to pass ordinances not inconsistent with the laws of this state which they may deem necessary to secure a speedy and thorough collection of all municipal taxes and special assessments.