moved to command structure with 'exec' as first and only command for now
added todos for refactoring
saving results and exit code to database, needs refactoring