Removed stats button. stats() function still there.
Set a busy timeout for sqlite of 5000. Probably way to high.
Don't write filenames to database until they're fully trained.