Trim database section. Convert line endings.