better support for json/bson/timestamp handling; cache mongodb data for stats, plots etc