sql: add search in sp