Issue overview
Within the financial_functions.py file, there is a function def calc_system_size_and_performance(agent, sectors, rate_switch_table=None) which initializes a psycopg2 connection object in order to query normalized load profiles and agent load profiles. For each chunk processed, this function is called, meaning that these psycopg2 connections remain.