Upgrade database class