'Given a cursor object that has just performed an INSERT...RETURNING
statement into a table that has an auto-incrementing ID, return the
list of newly created IDs.'

def fetch_returned_insert_ids(self, cursor):

    return [item[0] for item in cursor.fetchall()]
