thanks for using health care magic.Dyspareunia
or painful intercourse and leucorrhea or vaginal discharges are symptoms of a genital tract infection
and most often a chronic pelvic inflammatory disease(pid).
PID is largely caused by sexually transmissible infections but not withstanding could be caused by blood contamination.
You should meet your doctor for an ultrasound
o the pelvis that will visualise the pouch of Douglass for possible fluid collection in case of PID or cystic masses and for a vaginal smear for tests such as microscopy and gram staining, etc.
Another possible cause of painful sex is endometritis
but the presence of discharges is more in favor of an infection.
Hope this helps