addproduct function

A function to add a new product to the database.