How do I update a custom stopwords list in real time

I have a custom stopwords list and I want it to be updated in real time as
data is being stored in the database.