move the tdb lib code to lib/tdb/*