Bug: TransactionFactory must fail if database.open() fails.