MongoDB APP with java driver