mysql updates objects after it reads products that already exist