Data streaming from Panda3D to a database

Hey! I’m building an application where organisms interact with one another, each with its own neural network (NN). To reduce the workload on Panda3D, and to visualize real-time data from the population genes, I need to export both their genetic data and their NN data to a database. However, since the data that I’ll be exporting relates to each organism’s current state, this needs to happen every frame, which is why I was looking for a data streaming solution.
That said, has anyone here ever done a game/simulation/application that exports and imports back real-time data from Panda3D to somewhere else? Are there any libraries/APIs that could help me with that?
Thank you in advance!