Storing classes that a user needs to be notified about in the database and checking whether they've received a notification recently