I have been asked to find a way to get students' grades out of Moodle and either directly into an external database or into a format that can be imported into an external database. This needs to be something that happens on a daily basis, so I need the process to be automated.