Keep the MongoDB database and Whoosh index synchronized.