database class update