Event and data storage with embedded query system built ontop of MongoDB