test code for cleaning up obsolete book entries. not build tested yet