Updated mongoset to use states