Review the issue comments (5 comments) for any implementation ideas. Examine the database module in the repository, likely under offlineimap/database/, to understand how database files are used. Implement a new command line flag like check databases in the main entry point, iterating over each database file to perform the three checks described. Ensure the implementation allows inserting and removing a fake entry without side effects.