Be it further enacted by the authority aforesaid, that the mayor and council shall have authority to elect a city sexton, to have the superintendence of and care of the city cemeteries, whose duties shall be such as are prescribed by the mayor and council and by the ordinances of said city. He shall receive such compensation as may be prescribed by the ordinances of said city, and by the mayor and council.