Fixed integer size

Had id fields as length=2 when it should be length=10 to correspond
with the rest of moodle.
Fixed empty groups bug

Fixed a bug where, if there are groups in a course, but none of them
had students, workshop would not load.