code: def fetch_by_name(self, name):
          
          service = self.collection.find_one({'name': name})
          if not service:
              raise ServiceNotFound
          return Service(service)
docs: Gets service for given ``name`` from mongodb storage.