DB and multithreading added
Bug fixed in starting script