take melatonin before going to sleep and B6 after waking up in the middle of the night.