Modified the products api and now the addproducts api function is almost completed