Three times a charm, or so they say. Now properly:
I've created a bundle for textmate that allows one to edit data (for instance, html templates) stored inside a MySQL database. More info and a simple screencast can be found at http://vivified.net/journal/sqledit-textmate-bundle
I hope someone finds this useful -- I did.
cheers, Bastiaan Terhorst