added switch to turn on/off topic modelling functionality in Database.java