You basically explained the whole entire problem to your back pains.
Exercise more, when you're on your laptop, sit in a chair that is practically straight up and down.
Don't stay in the same position for too long, especially if it's not a straight up and down position.
Do yoga and shit
Stretch a fuck ton
If your pains continue, I'll ask my dad, and let you know.