I need to create a script that searches the bank of Moodle for the number of students approved in a given course and the number of students dropping out, I ask the help of experts about the Moodle bank schema for a path in order to assemble my query.