The mayor and council of said city shall provide, by ordinance, such rules and regulations as to them may be proper in order to establish and maintain a system of free schools in said City of Woodbury, that all fees, forfeitures and costs arising from the police court of said city be used for school purposes.