Sodium pentobarbital is a sedative often used for multiple reasons . Historically , it was as a remedy for insomnia , but now , its main functions encompass assisted death in animals and, rarely , as an anesthetic in particular creature procedures . It important to understand that the medication