Added support for specifying an sql mode