Between 2009 and 2012 , we conducted a randomized trial comparing a 12-month electronic health-based weight gain prevention intervention to usual primary care at 5 central North Carolina community health centers .