[db] Added plugin key for while deleting plugin outputs