updated the select query with date range