ad id to give primary key