Improvements to dbfit-teradata adapter

See #307 for discussion

/cc @MMatten @javornikolov