1def create_db():
2 with con:
3 cur = con.cursor()
4 cur.execute("DROP TABLE IF EXISTS Contacts")
5 cur.execute("CREATE TABLE Contacts (First Name TEXT, Last Name TEXT, Phone TEXT, Email TEXT);")
6 cur.execute("INSERT INTO Contacts VALUES (?, ?, ?, ?);", (firstname, lastname, phone, email))
7
8 ## call commit on the connection...
9 con.commit()