Newtyped DbName and refactored Main