In an app of mine, I have a database, and a class with a lot of functions. After each call of any function in the class, I would like to run a function to update the databas