Extract the 'DATABASE' section from a connection string, or return the entire connection string if it only has one section.
The connection string