database update for classes