I know that melatonin can improve sleep quality, and make it easier to fall asleep if you take it a few hours before bedtime. I'm not sure about it improving the likelihood of having a lucid dream, though.