Update db_optimize()