The money received from the collection of the rates, together with any other revenue derived from the operation of the works, shall be deposited in a bank by the treasurer in the same manner that public money is deposited by cities. The money so deposited shall be kept in a fund or funds and shall be applied as provided in this chapter.