changed database settings to main db