'Restore the dictionary of parameters from the database.'

def get_param_dict(self):

    job = self.sa_session.query(model.Job).get(self.job_id)
    param_dict = dict([(p.name, p.value) for p in job.parameters])
    param_dict = self.tool.params_from_strings(param_dict, self.app)
    return param_dict
