add 'class' field to database schema