Java project using mongoDB