v0.1: writes memory and cpu usage to database every second