I need a class that, from time to time, tries to cross database data and depending on the result send a notification to the user or modify / include information from the database. I do not know if this class / structure would be within the scope of the app, bundled in the sdk on the user's cell phone or if it is something external ... How do I do this? What is the resource used for this type of activity?