For CAC statistics purposes, if a database is used in a consumer product, then the customer of database-related products is the company that makes the consumer product, not the consumer themselves.
"Software developer" typically refers to an occupation (whether self-employed or working for a corporation), so products for developers would also be classified as B2B rather than B2C.