Check db error before reading build queue results. Exploring bug#993164
Using mysql db pooling