Added the necessary code to handle a database for historic data of job execution and energy consumption from SLURM.