Hello.
Lower back and neck pain can be a symptom of many health problems. A direct examination by a doctor will determine the cause of your pain and the appropriate treatment. However, you must inform your doctor about any previous addiction so they can prescribe medications and dosages suitable for your condition that won't cause you to relapse. Don't worry, your doctor knows the appropriate dosages.
However, you must adhere to the prescribed dosages and not increase them or use them for longer than the period specified by your doctor.
Wishing you a speedy recovery.