Emacs can run as a dameon and as that you could access it via
emacsclient. What is needed is a nice interface to allow to send simple
requests to insert and fetch data from org-mode. Some of the org-mode
function might do this already, however, I guess a decent layer which
hides the complex org-mode routines and provides simple to use in- and
output functions might be more effective.