Set up product url if statements and update database