Add more descriptive Exception Stack Trace and include
option to log database queries.