fix /admin/data api

can now actually get the number of sales on each weekday, etc