def connect(self):
    self.connected = False
    if (self.driver is not None):
        self.driver.close()
    try:
        self.driver = GraphDatabase.driver(self.url, auth=(self.username, self.password), encrypted=self.use_encryption)
        self.connected = True
        print('Database Connection Successful.')
    except:
        self.connected = False
        print('Database Connection Failed.')
    return self.connected
def connect(self):
    self.connected = False
    if (self.driver is not None):
        self.driver.close()
    try:
        self.driver = GraphDatabase.driver(self.url, auth=(self.username, self.password), encrypted=self.use_encryption)
        self.connected = True
        print('Database Connection Successful.')
    except:
        self.connected = False
        print('Database Connection Failed.')
    return self.connected