fix decimation_into_new_db and partitioning