def METHOD_NAME(self, sql, rows=None):
    """Execute insert query
    Args
    ------------
    sql : string
        sql insert query in INSERT INTO TABLE VALUES (%s,...) format
    rows : list
        list of tuples as table rows
    Returns
    ------------
    : list
        inserted ids
    """
    ids = []
    for row in rows:
        self._curs.execute(sql, row)
        ids.append(self._curs.fetchone()[0])
    return ids