You wedge a pillow under the small of your back in order to relieve your back pain but make sure that you properly set the pillows to avoid more damage to your back. You should buy a spinal back or a firm pillow an example of a spinal pillow is Memory Foam which curves so as to fit your backs' groove. Visit http://www.ehow.com/how_5619379_wedge-pillow-under-back-sleep.html for more tips.
Go ask an orthopedic doctor,he/she might know the answer to your dilemma, and he/she might prescribe the right thing that will align your spine (do you have kyposcoliosis? Because you said your spine in not align) I hope my answer helps if it does please press the thumbs up or write a comment about it.
It's important to hydrate so your body can dilute/excrete the acids your muscles produce from a workout or heavy physical activity. Avoid caffeine, carbonation and alcohol. Get a better bed. See a massage therapist and/or a chiropractor