Scientists created a small implant that works like a living pharmacy, producing medicine inside the body using living cells.