An adaptive strategy for statistics collecting in distributed database