DB/Errors: Db error clean up

By @untaught fixes #11116