def get_last_experiment(db, last_experiment_id):
    """Get data from db to show in 'last_experiments' panel."""
    last_experiment = db.get(last_experiment_id)
    results = {
        "e_id": str(last_experiment_id),
        "job_status": last_experiment["job_status"],
        "e_dir": last_experiment["experiment_dir"],
        "e_type": last_experiment["experiment_type"],
        "e_script": last_experiment["base_fname"],
        "e_config": last_experiment["config_fname"],
        "report_gen": last_experiment["report_generated"],
        "resource": last_experiment["exec_resource"],
    }
    return results