update database and class module