Fix locking, fix logging, new store per connection
Transactions implemented for update. Delete now uses update.