The council shall have power to require of parties and witnesses such bonds as may insure their appearance, and to pass all ordinances necessary to carry this section into effect. They shall further have the right to forfeit and collect said bonds in the same manner as bonds are now forfeited in the state courts.