added file path for external config
refactored database settings
added external configuration