get data from logs db for charts