Fix database settings error.