Use table for AMI ids