Fixed foreign key problem

Signed-off-by: Pieter-Jan Van de Perre <pieter-jan.vandeperre@student.kdg.be>