Determine column type and quote values properly in insert statements.