updates for running the command-line tagger; mainly db-related cleanup