All provisions of statutes, now made or hereafter enacted relating to towns, shall be understood to apply to cities; and all provisions relating to the selectmen and town clerks of towns shall be construed to apply to the mayor and aldermen and clerks of cities, respectively, unless a different intention appears.