function installed($pref) {
if (check_table($pref, 'item_codes')) return false;
if (check_table($pref, 'company', 'foreign_codes')) return false;
function installed($pref) {
if (check_table($pref, 'item_codes')) return false;
if (check_table($pref, 'company', 'foreign_codes')) return false;