Prescription medicines used to treat insomnia are sedative-hypnotics, such as zolpidem (prescribed as Ambien) and eszopiclone (prescribed as Lunesta), and while they may work, they may also be habit forming and