Fix fk for DB