is there an emacs interface to a relational database?
There is emacs widget. For example: http://www.xemacs.org/Documentation/beta/html/widget_3.html. Here is the user interface. http://www.xemacs.org/Documentation/beta/html/widget_2.html#SEC2. This also works with gnu-emacs.You might want to write some code that it can insert the data in your database, via SQL. Also look at http://www.emacswiki.org/emacs/sql-transform.el. I personally would like to have insert the data via org-mode tables.