private static DB getDB() {
        if(db != null)
            return db;
        
        try {
            db = new Mongo().getDB(dbName);
        }
        catch(Exception e) {
            e.printStackTrace();
        }
                
        return db;
    }