Fix Flyway problem in tests

Flyway does not request a writeable connection from the DB pool, it just
assumes it will be writeable. If you perform a read-only transaction
beforehand (e.g. `checkForDodgyPartIds` in `Global#onStart`) then the
connection will still be marked as read-only when Flyway comes to use
it.