In the early years MS-DOS versions up to version 5 sold for a relatively high price, of the order of US$1,000, but the executable Terminate-and-Stay-Resident (TSR) database engine file could be distributed with applications without payment of any licence fee.

The good ol’ days: Btrieve, Wikipedia