Set sequence to new inserted id if it explicitly defined