Slightly modified upgrading database.