added mode for compiling database with stopword option