Added commands to generate reports from database and base command class

user `assets.select_related('device_info')` - then there should be only one sql join