CORE-1624 CSV loader does not work with quote as first character in string

Handle strings that start with a ' and also handle CSV files with spaces between the column names
CORE-1597 ORA-01000: maximum open cursors exceeded.

Refactored CachingMetadata to fully encapsulate database interaction and ensure statements and resultsets are correctly closed