Added check for database config file