Improve transaction regression test performance

Create a LevelDB database containing the transaction output scripts for
faster access