Persist mongodb

This feature branch has functionality to persists and polls data from MongoDB.