Fix transaction db