modify database class