Refactored Config class, config files, and Database Connection.