Improve the dicom dictionary management

Still needs some re-thinking.
Some bin/ch clean up and experimental database option