The city council may appoint a city clerk, subject to confirmation by majority vote of the council, to keep a journal of the proceedings of the city council, to maintain in a safe place all records and documents pertaining to the affairs of the city, and to perform such duties as may be required by law or ordinance or as the mayor or city council may direct.