Insomnia relief

What can you take that's safe while pregnant. Melatonin and all the other natural stuff otc unfortunately doesn't work for me :(