Remove unused sqlite3 import.
Add email and file logging.