Configurable background service to check database availability and the health of the file processing thread