updated foreign keys

consider having cardinstance sales and media also have a set as forieng
key!