legacy plugin db clean