Add Mongo logic