I need to insert some methods that will always be executed on the system, eg check if the system is active or maintenance (getting some data of database), check if the user was locked or not, among others. What would be the best place to put these methods?