added foreign key to frequency, quantity, population tables