Update database optimization to include all tables now that search table can be cleared out.