Update database.py Function: addInvalidkeyEvent Change: Added an extra %s in the definition where the insert call is made.