fixed issue where fields and associated column names were not being fetched correctly causing incorrect data to be inserted