incremental commit

Fixes to summary  spending endpoint and backend and model and query