Updated "disable-foreign-keys-check" to use the new TypeAdapter class

"disable-foreign-keys-check" speeds significally when inserting into inodb with foreign keys.