Refresh fixes
use method to set foreign key constraints