More production fixes

More broken bits in the INI file, and ensure that we only try and fix
foreign keys for SQLite