def METHOD_NAME(event):
    if event.get("topic") in ignore_topics:
        return
    event_data = event._data
    event_id = event["id"]
    event_data["pype_data"] = {
        "stored": datetime.datetime.utcnow(),
        "is_processed": False
    }
    try:
        # dbcon.insert_one(event_data)
        dbcon.replace_one({"id": event_id}, event_data, upsert=True)
        log.debug("Event: {} stored".format(event_id))
    except pymongo.errors.AutoReconnect:
        log.error("Mongo server \"{}\" is not responding, exiting.".format(
            os.environ["OPENPYPE_MONGO"]
        ))
        sys.exit(0)
    except Exception as exc:
        log.error(
            "Event: {} failed to store".format(event_id),
            exc_info=True
        )