Use mongo instead of json file