import sqlite3
def pconn():
	conn=sqlite3.connect("people.db")
	cu=conn.cursor()
	return conn,cu
def  pinsert(pid,pna,pinf):
	conn,cu=pconn()
	sinsert="insert into people values('%s','%s','%s');"%(pid,pna,pinf)
	cu.execute(sinsert)
	conn.commit()
pn=raw_input("name>>")
pn="%s"%pn
pi=raw_input("id>>")
pi="%s"%pi
pif=raw_input("info>>")
pif="%s"%pif
pinsert(pi,pn,pif)
	