fix - ensure Photos has primary key.