from this post http://stackoverflow.com/questions/2130641/sqlite-python-insert I learned inserting into tables but now I need to use where something like
cursor.execute("insert into table1(id) values (?) where ip=? and address=?",(id,),(ip,),(addr,));