add kvdump which dumps the database as cdbdump would do