Database searching fixed.

I was passing the wrong parameter lol
Removed filtering inside items method.

It did not make much sense.Filtering of documents must be done on the
database level,where there are a collection of documents.There is no
point in providing a method that filters inside a single  document.