Begin refactoring command-line app.
Utilities and warnings for commands.
Refactor user command.
Refactor database command.