don't rely on Database-functions for getting sql/sql_root data in error-reporting

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>