Database construction script can now rebuild an existing database without
foreign key constraint violation errors.