corrected get_context to be context_XXXX, and fixed SQL to include additional moodle fullname requirements