added SQL get query to sales report