totals working with hardcoded query
added in new api endpoint to hit totals