maybe it is clever to start a transaction here to make bulk inserts more performant