in reply to Web GUI for database editing

I don't know what OS you're on, or which DB you intend to use, but there are (at least) two pre-rolled for linux. You need to provide a lot more detail -- it sounds like you want to re-invent some pretty well established wheels.

www-sql

"www-mysql is a web interface for the mySQL database. SQL commands can be embedded into web pages; these are executed on the server by www-mysql and the resulting web page sent to the browser. All SQL commands and queries supported by mySQL can be used via www-mysql."

webmin-mysql

"This module allows webmin (a web-based interface for system administration for Unix) to setup databases, tables, and permissions in your MySQL database server."