When security for the proceeds of a sale is taken, or when an investment of any proceeds is made, it must be done, except as herein otherwise provided, in the name of the clerk of the district court of the county where the papers are filed, and the clerk’s successors in office, who must hold the same for the use and benefit of the parties interested, subject to the order of the court.