Database backend for MCMC that operates on distributed data