Generelized BucketDB. Added int specification to BuketDB. Added ability to internaly stop collecting for one thread. Bug Fix