raiseIOError("%s already exists. Please delete it before trying to create a new one."%path)
forrowininput[1:]:
cur.execute("INSERT INTO tweets VALUES("+row[0].replace("'","''")+",'"+row[1].replace("'","''")+"','"+row[2].replace("'","''")+"','"+row[3].replace("'","''")+"','"+row[4].replace("'","''")+"','"+row[5].replace("'","''")+"','"+row[6].replace("'","''")+"','"+row[7].replace("'","''")+"','"+row[8].replace("'","''")+"','"+row[9].replace("'","''")+"');")
conn.commit()
if__name__=="__main__":
iflen(sys.argv)>2:
raiseValueError(sys.argv[0]+" only takes one argument, the path of the new database file.")