Implemented the model calibration from database