Added Search Function for user and Fixed long code in Thread Filter's SQL