fixed intersection bugs
fixed db_update