def add_event(self, event):
    params = [event]
    cursor = self.connection.cursor()
    cursor.execute('insert into events (EVENT)\n                values(?);', params)
    self.connection.commit()
    cursor.close()
def add_event(self, event):
    params = [event]
    cursor = self.connection.cursor()
    cursor.execute('insert into events (EVENT)\n                values(?);', params)
    self.connection.commit()
    cursor.close()