Bug 900289 - Add foreign key pragma to FHR database and associated tests