Be it further enacted, that said mayor and council shall have full power and authority to provide for the working of the convicts from the police court upon the streets and other public places and works of said city, to establish, equip, and maintain a city chain-gang, and prescribe rules and regulations for the proper management of same; to maintain, establish, and equip a city, jail or calaboose in said city for the safe-keeping of prisoners, convicts, and persons charged with violating the laws and ordinances of said city, and to provide for the feeding of such prisoners. The mayor and council shall have the authority to enact such ordinances necessary to carry out the provisions of this section.