Added basic output and CLI options. Moved CLI to the Database class.