add second parameters (table id) for search function.