update database class