How can I directly edit Discourse database from a GUI?

This. Just don’t modify the database directly. You will regret it someday.