Add to Cart from Custom database

Yup I can see the product id. But that product is added to a custom collection called “Dataset” instead of the inventory “Products”. I am unable to add a product from collection to the cart using velo code.