ALTER TABLE `users` ADD UNIQUE( `collection_id`, `id_product`);
INSERT IGNORE INTO `users` SET `collection_id` = ?, `id_product` = ?;
INSERT INTO `users` SET `collection_id` = ?, `id_product` = ?
ON DUPLICATE KEY UPDATE `date` = UNIX_TIMESTAMP();