added sql search features in site option group search function and improved performance