execution.] Such prosecution shall be brought for the whole sum due and the interest accrued, and it shall be sufficient to prove the amount of the debt, and the fact that the securities were the securities of the said officer or individual prosecuted, and judgment shall be given against said officer or individual and their said securities for the sum so due and interest according to law, and execution shall thereupon be issued against all the parties so tried, in favor of the state.