The mayor and council of the City of Woodbury shall have power to establish a guard house and work gang in said city and to confine at labor therein any persons who have been sentenced by the court of said city, to work upon the streets, sidewalks or other public works of said city, and shall have power to make all rules and regulations that may seem necessary for the control or government of such work gang and enforce the same through its proper authorities.