Update WordCountMain.java

Use of external database