better querying of stats db for rss and cpu, improved plotting