call the ops.quote_name method with argument self._table on the object under the db key of connections dictionary, substitute the result for table.
table = connections [ db ] . ops . quote_name ( self . _table )