Bulk trim legacy db