Section 1. There shall be a department of public works of which the director of public works shall be the head. He shall be appointed by the mayor, by and with the advice and consent of the council, and shall hold office during the term for which the mayor appointing him was elected and until his successor is appointed and qualified.