for mountain bikes you want around 3 or 4 inches of clearence between the bike and your pelvis bone. the frame size will not help in the upright riding, you need a different stem and all over frame desighn. talk to someone at your lbs about your problem and have them reccommend and then you can test some bikes.