Added Update Product and update Repositories function