Add additional SQLExceptions to the QueryException output

Fixes #1007

When JRE6 is used, it adds an extra Exception with additional information.
When JRE7 is used, it adds the extra SQLExceptions as suppressed exceptions.