The mattress you sleep on could either be hurting or helping your back. Mattresses that are medium-firm are the best for your back. Soft mattresses don't give enough support and can cause joint and muscle pain. If the mattress is too firm, it will not let your spine relax enough. Your mattress should give you enough support that it will not allow your spine to flex too much but it computer ergonomics should move some.