private static void connectAndAuthenticate() {
		try {

			Mongo mongo = new Mongo("localhost", 27017);
			DB db = mongo.getDB("paldb");

			boolean auth = db.authenticate("pal", "admin123".toCharArray());

			DBCollection collection = db.getCollection("users");

			logger.debug("collection: " + collection);
			logger.debug("authenticated: " + auth);

		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (MongoException e) {
			e.printStackTrace();
		}

	}