solved the mongodb db instance reuse case