Change connection settings to database.