refactoring to support string designators, toml database file, and demo script