Updated database foreign constraints