Thanks, found http://moodle.org/mod/forum/discuss.php?d=3935 , which has many previous posting on this.
General developer forum
Databases: Database Module...data model?
This discussion has been locked so you can no longer reply to it.