I would like to look into the database structure of some open-source systems like Moodle and IMathAS (e-learning systems). How do I get them?

Thanks for help.