Add a condition (if system cannot access to database, it will stop working and exit) to DatabaseConnect
ReadPDF is to read PDF files and extract them into plain text in the same directories.
Add condition to check the existing of result directory (If there is, do not create)
Add condition to check the existing of files inside the result directory (If there is, do not create)