Primary key storage in other tables