code: def tag_alert(self, id, tags):
          
          response = self.get_db().alerts.update_one(
              {'_id': {'$regex': '^' + id}}, {'$addToSet': {'tags': {'$each': tags}}})
          return response.matched_count > 0
docs: Append tags to tag list. Don't add same tag more than once.