One file is convenient to transfer, but this does not cover the risks of possible loss of information or bugs with your software or format.
Regular files in a reliable file system are much safer.
As a database option, can be consider mounting an image with a file system, which is also convenient to transfer.
Additional data and indexes can be stored in an auxiliary file.
But, of course, your own database format is a good way to retain customers.