Experimental implementation of DB staging
Store staged updates in a separate database
Use an in-memory database for staged updates and commit in sorted order
Drop indices while inserting staged updates
Enable in-memory staging database (which turns out to be slower, but the refactorings are still desirable)