def METHOD_NAME():
    flask.g.team_admin_id = dci_app.team_admin_id
    flask.g.team_redhat_id = dci_app.team_redhat_id
    flask.g.team_epm_id = dci_app.team_epm_id
    for i in range(5):
        try:
            flask.g.engine = dci_app.engine
            flask.g.db_conn = dci_app.engine.connect()
            flask.g.session = sessionmaker(bind=dci_app.engine)()
            break
        except Exception:
            logging.warning(
                "failed to connect to the database, " "will retry in 1 second..."
            )
            time.sleep(1)
            pass
    flask.g.store = dci_app.store
    flask.g.sender = dci_app.sender