cursor.execute('CREATE TABLE foo (bar INTEGER UNIQUE, baz INTEGER)')
cursor.execute('INSERT INTO foo (bar,baz) VALUES (?, ?)', (1, 2))
cursor.execute('INSERT OR IGNORE INTO foo (bar,baz) VALUES (?, ?)', (1, 3))
insert into sqlite table with unique column