Fix a bug that transaction test case uses wrong db.