What is new in Extend Script CEP?
Can Extend Script CEP connect to Database?
The SDK contains examples of this, 1 using mySQL and I think the other one MongoDB.
Either way with it's nodejs functionality it's not a problem.
See GitHub - Adobe-CEP/Samples: Samples for Adobe Common Extensibility Platform (CEP)
The CEP_HTML_Test_Extension has an example of using Nodejs to connect to a database.
Retrieving data ...