def get_settings(self):
    cursor = self.connection.cursor()
    cursor.execute('select * from settings limit 1')
    row = cursor.fetchone()
    settings = {}
    if (row is not None):
        for key in row.keys():
            settings[key.lower()] = row[key]
        cursor.close()
    return settings
def get_settings(self):
    cursor = self.connection.cursor()
    cursor.execute('select * from settings limit 1')
    row = cursor.fetchone()
    settings = {}
    if (row is not None):
        for key in row.keys():
            settings[key.lower()] = row[key]
        cursor.close()
    return settings