How does CBD oil help with pain relief and is it effective?

How does CBD oil help with pain relief and is it effective?