sql filters are now embedded in controller