added error handling to article and product data insertion