addded DISTINCT and ORDER BY key words in reports SQL queries