Die with internal server error on misconfiguration

Or internal server (database) outage
Merge pull request #762 from greezybacon/issue/die-with-500

Die with internal server error on misconfiguration

Reviewed-By: Peter Rotich <peter@osticket.com>