new table in and update on search function