Fixed bug #9480: Enhance debug information with SQL data