shortlog: refactor insert_one_record()