Add backward compatibility to dbpath option.
Add thread removal trigger