def create(self, product: Product): """Add a given product to database""" self.collection.insert_one(product.dict())