Melatonin is something you can use to fix an acute condition like a jetlag. For chronic sleep problems as you described as "often", you need to resolve the underlying issue, so you're not the target demographic of melatonin by the way you described it.