restore the auto increment value for the table to what it was previously

def _restore_auto_increment(self, table):
        """restore the auto increment value for the table to what it was previously"""
        query, seq_table, seq_column, seq_name = self._get_auto_increment_info(table)
        if query:
            queries = [query, "select nextval('{}')".format(seq_name)]
            return self._run_queries(queries)