Fixed a bug where inserts weren't commiting.