The amounts of money raised by such assessments, together with the amounts added thereto by the city or town authorities from the city or town treasury, shall constitute and be kept as a separate fund, to be used only for the purpose for which it was raised and appropriated.