Sertraline is prescribed for depression and trazodone for insomnia.