Added commands to generate reports from database and base command class

why lt and gte instead of simple comparison (date=date)?