Fixed a bug - When deleting the last file from 'db' folder , it did not delete it from the posting file and from its words from the Mysql database. Now its working