fix bug in selecting mcmcdb_iters with chain_id not NULL