use weakrefs in the registry
move db url parser to utils/misc, better layout for dumpdb tool