fix some error in updatedb