adding Mongodoc.db and tests