Add error reporting on failed DB connection.
Fix Issue #3327
Merge pull request #3331 from BcTpe4HbIu/airalarm_fix

Airalarm fix