show correct errormessage when sql-prefix is wrong

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