Yes, you are right, extra b5 is a must.
And yes, melatonin is a hormone. If you use it for more than a few months at a time, your body will stop producing it on its own.
To induce melatonin production, get up in the morning and enjoy full sun on your head for a few minutes at least (some people never see the sun, literally). This will increase the level of serotonin in your brain, which will help to produce the melatonin you need at nigh. Don't forget to sleep in a room free of electrical gadgets, and as dark as possible to make it easier for your body to produce melatonin.
It is helpful to turn off the tv and the computer some time before going to bed. In my case, I got a Himalayan lamp close to me in the room where I read a little before bedtime.