DB/Errors: Leftoever fixes

Work done by @untaught fixes #10747