30 weeks and 6 days w spotting.

okay so recently i had BV and got treated for it twice w metro gel and i got treated twice bc i still had symptoms after the first round of treatment and kept spotting along w having unusual discharge. i finished my treatment on Friday. i spot when i have BV or any kind of infection while pregnant. have not had sex, no pelvic exam but i did masturbate earlier/only clit stimulation but don’t know if this would cause this to happen like this? been spotting like this the whole day. the baby has moved a little today, the only pain i have is on my upper back left side and above my ribs, i feel like those are normal pregnancy things tho so idk. has anyone experienced this? this is my second pregnancy. this pregnancy has not been the best.