I made the database location a command line argument (I thought that was a requirement, but maybe not)... then I made sure it a good database - special thanks to Michael Morris for all of his help
You can scan the archives for posts on "partial data integrity checks" to see our conversation.