kvdb_export bug fixes