the form in which such security shall be given, and the said officers and their sureties may be sued and recovery had against them in the city court, for breach of official duty; and for the recovery of fines, forfeitures, penalties, debts and other demands, cognizable in the city court, the ordinary forms of law shall be pursued in the process, judgment and several kinds of execution, as if the s