Add query for a heat db error

44 related failures in the past 7 days, 0 false positive.

Change-Id: I49cdd50638d444f6ab6043d2dc29566352addbda
Related-Bug: #1288970
Merge "Add query for a heat db error"