fix 'Undefined index: REMOTE_ADDR' error in cli mode
fetch latest report by comparing with recent one from database