added mcmcdb_flatten method
rewriting McmcdbParameters class