now builds data useful for linecharts on server