add win_connect_mdb function