Manually merge pull request https://github.com/groupon/tdsql/pull/6 (add options for database, charset, and mode) from dbushong