Added and updated function to write kick table to SQLite database.