add function to add product into db