It sounds as if you're already on the right track to dealing with this. If stretching alleviates the symptoms, it seems like the obvious way to go. To prevent further injury, I would also review what chairs you are using and engage in core training.