modified getorders method overload to get orders by status and date range