Use passed filter dict param in core sql filtering

The existing code incorrectly ignored the passed in cumulative dict.
It functionaly got away with this error since the variable name
it used internally matched the one used in the scope of the caller
method.  Also, correct misspelling in the the same variable name.

Change-Id: Ib80df4dda2f1a8058a15d6407cae1532f4f988e4
Merge "Use passed filter dict param in core sql filtering"