Solutions for sleep apnea and insomnia