Replaces sets with filter system used in generateDBQuery
extends generateDBQuery to return an object containing queries and filters
adds invertQueries method
adds parseQueries method