prepare converting filters raw format to db query
generating min max dbqueries