added search params through sql