writes computer memory and process usage to a mongo database every n seconds