Remove files generated at runtime.
Simplify logger name code.
Consolidate database connection code.