Modifying ids of product and category based on server's