add basic mongodb features, need further modify