Updating GetTableName to wrap domain and table name in [] to handle reserved names in tables