Witnesses before the grand jury may be sworn by the district attorney or foreman.
A list of all witnesses summoned and in attendance before such jury during each session shall be kept by the foreman, and he shall give to each of such witnesses a certificate, stating the number of the case in which such witness attended, the number of days of his actual attendance, the number of miles traveled by him and the amount due him, and each of such items the foreman shall enter in a book kept for that purpose, and such book and list, certified by the foreman to be correct, must be by him returned into the court and by the clerk filed and kept as a part of the records of such court.