Added commands to generate reports from database and base command class

maybe output stream (if it's file or stdout) should be configurable?