added fix to get all orders without filtering by status
modified query string to allow datetime range instead date range