API Connected with MongoDB