The district attorney and the grand jury shall be entitled to free access, at all proper hours, to the county jail, to the office of the county treasurer and to examination, without charge, of all records and other papers in any of the county offices connected in any way with their duties.