Wrote a contains helper method and finished the query in the store. Can now query with a function instead of just an object