input: Write a python function to scrape product data from a webpage and store it in a MongoDB database.
  assert scrape_and_store_data('https://www.example.com/products') == "Data stored in database!"
  assert scrape_and_store_data('https://www.example2.com/products') == "Data stored in database!"
output: def scrape_and_store_data(url):
      import requests
      from bs4 import BeautifulSoup
      from pymongo import MongoClient
      
      # Initialize MongoDB client and database
      client = MongoClient('localhost', 27017)
      db = client['product_database']
      collection = db['products']
      
      # Send a GET request to the URL
      response = requests.get(url)
      
      if response.status_code != 200:
          return "Failed to retrieve the webpage"
      
      # Parse the webpage content
      soup = BeautifulSoup(response.content, 'html.parser')
      
      # Example: Extract product data from the webpage
      products = []
      for product in soup.select('.product-item'):
          name = product.select_one('.product-name').text.strip()
          price = product.select_one('.product-price').text.strip()
          products.append({'name': name, 'price': price})
      
      if not products:
          return "No products found"
      
      # Insert product data into MongoDB
      collection.insert_many(products)
      
      return "Data stored in database!"