made compatible with existing testnet database