Be it further enacted, that the mayor and council shall have authority to elect a city physician, whose duties shall be such as required by the ordinances of said city and by the direction of the mayor and council, and his compensation shall be fixed by the laws and ordinances of said city or by the mayor and council. He shall co-operate with the board of health hereinafter provided for, and shall consult and advise with the board of health in their efforts to maintain the cleanliness of said city and preserve the health of the inhabitants thereof.