Custom SQL report code for Moodle

In Progress