[Mongodb]: add the db_prototype & fix the test