Add support for writing to KDB and dumping HDB to MIT KDB dump format