processlist graph is wrong, but it shows how it can be done with sqlite