Added ability for filter to build SQL's