Update Database class.