How does CBD oil help with pain management?

How does CBD oil help with pain management?