how to check the existence of a row in sqlite with python?,"cursor.execute('insert into components values(?,?)', (1, 'foo'))"