Class Schedule Generator using a database