Virgin probs

So my boyfriend and I had sex for the first time about two weeks ago and it hurt so bad we just stopped. Yesterday we tried again and it went better but it still hurt really bad. Is there anything I can do to make it feel better next time? Or to not be so sore?