add db cleanup script to reverse termb, terma for existing terms