Universal database sampler