I don't know what to do..

Hey ladies I need some advice. I'm 17 and my names Jacquelyn. 2 years ago I fell in love with my ex boyfriend David and everything was great except he was always such a jerk and never really cared about anything. Last year my mom passed away and e and David broke up. As the months passed me and David seen each other on and off and I still love him. We always had a rocky relationship because he went to school in Orlando    Now that's I've been single for a while I started dating this amazing guy named Erik and he's perfect. He's always been my dream guy. Problem is that David wants me back and we had sex this morning. I don't know who to choose. Me and David have so much history together but me and Erik are perfect together. Please help.