added check for database being down.
Merge branch 'master' of github.com:Hoektronics/BotQueue