added mongodb persistence for karma