last_inserted_ids() in sqlalchemy was deprecated by inserted_primary_key not primary_key