Fix multiple inserts in SQLite

See #98 for explanation of what was wrong.