Added the collection of stack data for sql statements.