changing table quoting and adding support for mysql