How to run and test MySQL queries in moodle environment (Moodle 2.5)