    private static DB getDB() {
        Mongo mongoClient;
        try {
            mongoClient = new Mongo("mongodb-rankitapp.jelastic.dogado.eu", 27017);
        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
        }
        final DB pingpong = mongoClient.getDB("pingpong");
        final boolean auth = pingpong.authenticate("admin", "XIyqkxSMgQ".toCharArray());
        if (!auth) {
            throw new RuntimeException("Mongo authentication failed!");
        }
        return pingpong;
    }

    private static DB getDB() {
        Mongo mongoClient;
        try {
            mongoClient = new Mongo("mongodb-rankitapp.jelastic.dogado.eu", 27017);
        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
        }
        final DB pingpong = mongoClient.getDB("pingpong");
        final boolean auth = pingpong.authenticate("admin", "XIyqkxSMgQ".toCharArray());
        if (!auth) {
            return pingpong;
        }
        return pingpong;
    }
