The problem:
tokenDB.sol contract doesn't implement any upgrading mechanisms. I think that it is a critical flaw.
Suggestion:
The contract should implement a function to stop it (disallow increases and decreases).
The contract should implement a migration mechanism. This will allow to deploy a new contract and connect tokens with a new DataBase.
The contract should implement functions to transfer the balances from the old version of the contract to the new contract. (It can be useful to automatically reflect balances from old contract to a new one on each call of old contract)
The problem: tokenDB.sol contract doesn't implement any upgrading mechanisms. I think that it is a critical flaw.
Suggestion:
increase
s anddecrease
s).