Revert "tdbstate"

This reverts commit deb0fd83b908b273fe743261bac1a1a1d941a9f2.