As someone with continual upper and lower back pain I suggest
1. Visit a doctor/chiropractor. Continuing to ride in pain is not fun nor wise. Trust me, I ignored
the pain and paid the price.
2. Bike fit. Bike fit. Bike fit. The LBS I bought my bike from didn't do a good job. Find a real pro
at bike fitting.