Display last sql queries on exception thrown.