Queries a Moodle 2.x database for information about student course completion