Crystal structure of a small-chain dehydrogenase