tdb: add mktdb tool.