diagnostics: show offending SQL statement on error
use current host/port for pre-filled URL