private int getWordID(String word) throws SQLException{
	    
	    String query = String.format("SELECT wid FROM word_dictionary where '%s' = word;",word);
	    
	    ResultSet rs = this.dbConnection.execute(query);
	    int wordID = 0;
	    rs.next();
	    
	    if(rs.isLast()){
	        wordID = rs.getInt("wid");
	    }else{
	        //Word doesn't exist, then we add the word
	        rs.close();
	        wordID = insertNewWord(word);
	    } 
	    rs.close();
	   
	    return wordID;
	}