correctly adding to mongo
adding client endpoint