Needs work
- Reading through https://www.mediawiki.org/wiki/Database_transactions to find if there some features we can use to improve locking situation when we write to new store
- Check later if we can optimize (lower down the number of) writes we do to new store