OPEN - task 17: sql in M81r07 is wrong 
https://github.com/orraf/eBudgeting/issues/issue/17

not quite correct yet but close enough for now .. will have 
to reinvestigate on activity