Repetitive bacterial vaginosis

Ok Ladies so for the past couple of years my body keeps giving me bacterial vaginosis. It seems like it comes more frequently as time goes on and it's very frustrating and embarrassing as sometimes the smell is noticeable. I have NO STDS, in fact I get checked regularly. It comes when I have sex or even when I'm not having sex at all. It just comes and goes. The doctor just keeps prescribing me that nasty white flagyl pill and it will go away but it ALWAYS comes back. Has anyone ever suffered from chronic or repetitive BV? If so what are you doing/have you done about it and how do you control the odor?? I NEED HELP. I'm going insane. I also want to add that it did not start coming until after I had a baby back in 2014 , but it didn't get this bad until recently.