Reworked the db layer to make db access easier, without explicit passing of the command config.
Updated users of the db layer
More updates for db layer changes. Extended functionality for seen. Mailer tweaks.
Added basic mail generator code lifted from watch-do. Filled in mail delivery code using the new backend functionality. Missing, still: Dynamic field resolution. General suspension, account suspension, configurable title field, configurable ticket field action. Extension beyond tickets. Debug narrative. Dry runs. Route import/export. Test commands.