Every recognizance taken by any peace officer must be certified by him or her forthwith to the clerk of the court to which the defendant is recognized. The clerk must thereupon record the recognizance in the order book, and, from the time of filing, it has the same effect as if taken in open court.