removed unnecessary variables, changed dictionary and getDbHeartbeat() method
added new entry point for nagios