Alter INSERT IGNORE queries to workaround innodb auto increment
behaviour