Fix makedb by removing foreign keys for different script