Update the database class