Add query for heat db transaction error bug 1328983

16 hits in 2 days, check and gate, all failures.  Looks like this might
be contributing to timeout failures on cleanup of stacks for testing.

Related-Bug: #1328983

Change-Id: Ic07c6a39c990fe11d24eff4faa17a8e62ed85f69