legacy: dbdump fix

Addresses #2088