def check_packages(db_name):
        """
        Check if the driver for the user defined host is available. If it is not available, download it using PIP
        :param db_name:
        :return:
        """
        print('Checking for required Database Driver')

        reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])
        installed_packages = [r.decode().split('==')[0] for r in reqs.split()]

        # print(installed_packages)

        if db_name.lower() == 'mysql':
            if 'PyMySQL' not in installed_packages:
                print('Installing required Database Driver')
                os.system('pip install pymysql')

        if db_name.lower() == 'postgresql':
            if 'psycopg2-binary' not in installed_packages:
                print('Installing required Database Driver')
                os.system('pip install psycopg2-binary')

        return True
Check if the driver for the user defined host is available. If it is not available, download it using PIP
        :param db_name:
        :return: