add ability to pass parameters to date_sales query