Adds table name escaping to scopes