defining database in mongodb code example Example: create mongodb database db = new Mongo().getDB("EtudiantDB");