add explicit type names
always use validation query
global task entry type
run MetadataSegmentManagerTest against Derby
remove unused code