added foreign keys to entities

some experiments on persistence problems with Highscore