database and 'add class' page fixed