how is the vagina connected to the uterine cavity