Database sampler