Updating a table

Here is the code that got me what I wanted:

	Time = system.date.now()
	Name = self.session.custom.Name
	ID = self.session.custom.Badge_Num
	databaseConnection = "IgnitionHud"
#	system.db.runPrepUpdate("UPDATE IgnitionHud.dbo.SM_CheckIn SET Time = ? WHERE Name = ? AND Badge_Num = ?",[Time, Name, ID], databaseConnection)
	system.db.runPrepUpdate("INSERT INTO SM_CheckIn (Time, Name, Badge_Num) VALUES (?,?,?)", [Time, Name, ID])

Thank alot for all the help!