ADD functionality to use the JSON/XML format from database in csubs and casubs collection and send notifications according to it