function [] = store_results(experiment, db, results_dir)

  if nargin < 3
    global results_dir;
  end

  [s, mess, messid] = mkdir(results_dir);
  if(s ~= 1) 
    error('Create results folder failed');
  end
    
  save([results_dir, experiment, '.mat'], 'db');

end
