A case study on the analysis of the data quality of a large medical database