Added mongodb persistence