implemented alerts query from multiple collections. no need so far to change the DB structure