yeah, that makes more sense.
You would need to hand code the logic to make an ajax request to the database to get the content from the database, then do another ajax call to update the database.
this is not directly supported in HTML Editor and will take custom coding.