The tdb library