Replace print() with logging.info()
Add proper logger with hierarchy
Save vote history to sqlite3 database