fix db_sample