Added frame info for the foreign key and fixed the populate script