You need to start getting into Roles and Capabilities. There is now a mdl_role_assignments table that holds the equivalent information, but it is more flexible, and so more complicated.
See http://docs.moodle.org/en/Development:Roles
Courses and course formats
Moodle 1.8.3 enrollment and teacher table
This discussion has been locked so you can no longer reply to it.