Refactored database settings to separate file and simplified database backup