Add model management mongodb and model factory