update class db