Convert from using mysql to mongodb