add distributed query mycpd + moodle