Write MongoDB queries for a products collection: (1) Insert 5 products, (2) Find all electronics under $500, (3) Update stock for a specific product, (4) Delete discontinued products, (5) Aggregate: average price per category, (6) Create index on category+price.