It's rare for a large company to simply close down. Usually someone buys it out of bankruptcy, and keeps the profitable parts going. Database licensing definitely makes money.