refactor heartbeat report, add database alert module