Added MongoDB persistence.