Modified dicom_mod to have a database insertion function for the study/series statistics