The commissioner shall file and preserve the record of the indictment and conviction, in the case of an adult, or the charges and adjudication, in the case of a juvenile, of each inmate or resident, and keep a register describing him or her, the term of his or her confinement, for what offense, and when received into the institution.