Added expirmental SQL and code for search filters attempt 11