Selecting AMI for AWS provisionning


I have created some catalog item to provision machine using custom AMI. AMI were constructed “by hand” and named like centos7-v1, centos7-v2 etc, so mapping latest ami version to catalog item was easy.
Now we are using packer to create ami faster and update them more often. AMI are named centos7-packer. So as all have the same name, the mapping is not that easy. I don’t know how I can find the latest one.
Is there a way in DB/rails console where I can find which AMI id correspond to which id in manageiq? Or is there a way to add a new column with ami id or released date to the table where I select AMI?