DB/Errors: Db error fix

Fixes #10663