I need to port data from our previous lms to moodle. There are some students who have already been issued a certificate in the previous lms for a course. Presently in moodle the certificate is only available after the student completes a quiz. Which are the tables I need to modify in the moodle database such that the certificate is available to a student even without the student completing the requirements. I inserted rows to mdl_course_modules_completion, this makes the course completion report show that the certificate activity has been completed by the student, but the certificate is still hidden to the student.