#17 replacing character fields with text fields. Left sourcefileid and dwcaid fields as character varying for indexing reasons