Melatonin and its metabolites promote long-term memory and protect against cognitive decline in mice.