Respect database prefix

Allow Moodle to supply the database prefix, instead of assuming mdl_.
Merge pull request #3 from sd63/dbprefix-22

Respect database prefix in quiz module (2.2 edition)