getting classlists from the database